<% 
	import urllib
	from beagleclientpylons.model.result import SnippetRequest
%>


<% show = request.params.get('show', 'less') %>
<% index = request.params.get('index') %>
% if show == 'more':
	<% next = 'less' %>
% else:
	<% next = 'more' %>
% endif

<font size="-1">
	${urllib.unquote(c.hit.get_uri())}
	${h.link_to_remote(next, dict(update="detail" + request.params.get('index'), url=h.url_for(action='detail', index=index, show=next)))} 
</font>


% if show == 'more':
	<font size="-1">
	<%
	snip = SnippetRequest(session['query'].bquery, session['pager'].element_at(int(request.params.get('index'))))
	snip.execute()
	%>
				
	% if snip.snippet:
		<p>Snippet : ${ snip.snippet }
	% endif

	% for property in c.hit.get_all_properties():
		<p>${property.get_key()} : ${property.get_value()}</p>
	% endfor

	</font>
% endif



